package com.practice.communication.aio;

import java.util.Scanner;

public class Test {
	
	@SuppressWarnings("resource")
	public static void main(String[] args) throws InterruptedException {
		Server.start();
		
		Thread.sleep(100);
		
		Client.start();
		Thread.sleep(100);
		
		System.out.println("请输入请求的信息：");
		
		Scanner scanner = new Scanner(System.in);
		while (Client.sendMsg(scanner.nextLine()));
	}

}
